Ext.define('DCApp.view.ugroup.Detail', {
    extend: 'DCApp.view.Detail',
    alias: 'widget.ugroupdetail',
    
    requires: ['DCApp.ux.ComboTree','Ext.form.field.Tag'],
    
    bind: {
        title: '用户组 - 【{theObj.id}】'
    },
    
    componentCls: 'ugroup-detail',
    bodyPadding: 0,
    
    controller: 'detail',
    
    afterRender: function(ct, position) {
    	this.callParent();
    },
    items: [{
    	listeners: {
		  render: function(p){
			p = p.getEl();
			var me= this.up();
			me.h0=p.getHeight();
		    p.on('scroll', function(e, t){
		    	me.onscroll(t.scrollTop,t.clientHeight);
		    }, p);
		  }
		},
    	title: 'Panel 0',
        flex: 2,
        frame: false,
        xtype: 'container',
        layout: 'anchor',
        style: {
            overflow: 'auto'
        },
        items: [
                		{
							title : '用户组信息',
							margin : '0 0 10 0',
							cls : 'nav_pos',
							reference : 'form',
							bodyPadding : 10,
							fieldDefaults : {
								labelAlign : 'right',
								labelWidth : 100,
								padding : 3
							},
							defaults : {
								anchor : '100%'
							},
							xtype: 'form',
                    		items: [
			                    {
			                        xtype: 'container',
			                        layout: 'hbox',
			                        combineErrors: true,
			                        defaultType: 'textfield',
			                        items: [
			                        	{
			                            	flex: 1,
			                            	xtype: 'textfield',
			                        		fieldLabel: '序号',
			                        		allowBlank: true,
			                        		bind: '{theObj.id}',
			                        		publishes: ['value']
			                        	},
			                        	{
			                            	flex: 1,
			                            	xtype: 'textfield',
			                        		fieldLabel: '用户名',
			                        		allowBlank: true,
			                        		bind: '{theObj.name}',
			                        		publishes: ['value']
			                        	}
			                        ]
			                    }			                    
		                    ]            
						}    
        
		]
    }]
});
